package com.tan.steamship.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tan.steamship.common.Result;
import com.tan.steamship.domain.ShoppingCartPo;
import com.tan.steamship.vo.CartVo;

import java.util.List;

/**
* @author 85726
* @description 针对表【shopping_cart(购物车表)】的数据库操作Service
* @createDate 2025-02-09 13:20:21
*/
public interface ShoppingCartService extends IService<ShoppingCartPo> {

    List<CartVo> getCartByUserId(String userId);

    Result addCart(Integer routeId, Integer userId);

    void deleteCart(String cartId);

    void updateCartNum(String cartId,   String num);
}
